<form action="index.php" method="post" name="_form">
<input type="hidden" name="function" value="users_mailing_send" />
<input type="hidden" name="module" value="mailing" />
<input type="hidden" name="redirect" value="<?echo($_SERVER['HTTP_REFERER']);?>" />

<table align="center" width="100%" border="0" class="tabelka2">
<tr>
    <td class="row_1" align="center"><?echo($lang['mailing_subject']);?></td>
	 <td class="row_1" align="left"><input type="text" maxlength="150" name="subject" value="" class="button" size="30" /></td>
</tr>
<tr>
    <td class="row_2" align="center"><?echo($lang['mailing_message']);?></td>
	 <td class="row_2" align="left"><textarea name="message" cols="60" rows="20" class="button"></textarea></td>
</tr>
<tr>
    <td class="row_1" align="center" valign="top"><?echo($lang['mailing_mailto']);?></td>
	 <td class="row_1" align="left">
	 <table cellspacing="0" cellpadding="1" border="0" width="100%">
	 <tr>
      <td class="row_1" align="left" width="16" valign="top"><input type="radio" name="how" class="radio" value="all" class="button" checked></td>
      <td class="row_1" align="left"><?echo($lang['mailing_all']);?></td>
    </tr>
	 <tr>
	   <td class="row_1" align="left" width="16" valign="top" rowspan="2"><input type="radio" name="how" class="radio" value="groups" class="button" /></td>
	   <td class="row_1" align="left"><?echo($lang['mailing_groups']);?></td>
	 </tr>
	 <tr>
	   <td class="row_1" align="left"><select name="groups[]" class="button" multiple size="6">
	   {groups_list}
	   </select></td>
	 </tr>
	 <tr>
	   <td class="row_1" align="left" width="16" valign="top" rowspan="2"><input type="radio" name="how" class="radio" value="users" class="button" /></td>
	   <td class="row_1" align="left"><?echo($lang['mailing_users']);?></td>
	 </tr>
	 <tr>
	   <td class="row_1" align="left"><select name="users[]" class="button" multiple size="6">
	   {users_list}
	   </select></td>
	 </tr>
	 </table>
	 </td>
</tr>
<tr>
     <td align="center" colspan="2"><input type="submit" value="<?echo($lang['submit']);?>" class="button" /></td>
</tr>
</table>

</form>
